package com.young.coderule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 编码规则分录表实例类
 *
 */
@TableName("com_code_rule_t")
public class ComCodeRuleT {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 规则主表id
     */
    @TableField("rule_id")
    private Long ruleId;

    /**
     * 序号
     */
    @TableField("seq")
    private Integer seq;

    /**
     * 属性类型：1-随机码    2-常量,  3-系统日期  4-业务对象日期, 5-业务对象字段，6-流水号,
     */
    @TableField("attribute_type")
    private Integer attributeType;

    /**
     * 使用模式：1-整段编码, 2-分区间段编码, 3-完全取值, 4-属性截断
     */
    @TableField("attus_mode")
    private Integer attusMode;

    /**
     * 编码来源
     */
    @TableField("source")
    private String source;

    /**
     * 显示格式
     */
    @TableField("format")
    private String format;

    /**
     * 显示格式
     */
    @TableField("format_name")
    private String formatName;

    /**
     * 长度
     */
    @TableField("length")
    private Integer length;

    /**
     * 起始值
     */
    @TableField("initial")
    private Integer initial;

    /**
     * 步长
     */
    @TableField("step")
    private Integer step;

    /**
     * 补位符
     */
    @TableField("add_char")
    private String addChar;

    /**
     * 段间分隔  Y-是  N-否
     */
    @TableField("issplitsign")
    private String issplitsign;

    /**
     * 补位  Y-左  N-右
     */
    @TableField("add_style")
    private String addStyle;

    /**
     * 截取  Y-左  N-右
     */
    @TableField("cut_style")
    private String cutStyle;

    /**
     * 流水号依据：1-非依据, 2-设为依据, 3-设为依据但不显示
     */
    @TableField("`status`")
    private Integer status;

    /**
     * 设置值
     */
    @TableField("set_value")
    private String setValue;

    /**
     * 默认段间分隔符：1-空, 2--, 3-@, 4-#, 5-$, 6-%, 7-^, 8-&amp;, 9-*, 10-_, 11-.
     */
    @TableField("split_sign")
    private Integer splitSign;


    @TableField("split_sign_name")
    private String splitSignName;

    /**
     * 是否显示  Y-是  N-否
     */
    @TableField("isview")
    private String isview;

    public Long getId() {
        return ruleId;
    }

    public void setId(Long id) {
        this.ruleId = id;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Integer getAttributeType() {
        return attributeType;
    }

    public void setAttributeType(Integer attributeType) {
        this.attributeType = attributeType;
    }

    public Integer getAttusMode() {
        return attusMode;
    }

    public void setAttusMode(Integer attusMode) {
        this.attusMode = attusMode;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getInitial() {
        return initial;
    }

    public void setInitial(Integer initial) {
        this.initial = initial;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    public String getAddChar() {
        return addChar;
    }

    public void setAddChar(String addChar) {
        this.addChar = addChar;
    }

    public String getIssplitsign() {
        return issplitsign;
    }

    public void setIssplitsign(String issplitsign) {
        this.issplitsign = issplitsign;
    }

    public String getAddStyle() {
        return addStyle;
    }

    public void setAddStyle(String addStyle) {
        this.addStyle = addStyle;
    }

    public String getCutStyle() {
        return cutStyle;
    }

    public void setCutStyle(String cutStyle) {
        this.cutStyle = cutStyle;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSetValue() {
        return setValue;
    }

    public void setSetValue(String setValue) {
        this.setValue = setValue;
    }

    public Integer getSplitSign() {
        return splitSign;
    }

    public void setSplitSign(Integer splitSign) {
        this.splitSign = splitSign;
    }

    public String getSplitSignName() {
        return splitSignName;
    }

    public void setSplitSignName(String splitSignName) {
        this.splitSignName = splitSignName;
    }

    public String getIsview() {
        return isview;
    }

    public void setIsview(String isview) {
        this.isview = isview;
    }
}